<template>
  <div>
    <h1>Counter组件</h1>
    {{ count }}
    <button @click="a">子组件+1</button>
  </div>
</template>


<script>
export default {
  props: ["count"],
  methods: {
    a() {
      this.$emit("b");
    }
  }
};
</script>